package com.aliyun.service;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.aliyun.bean.QueryPara;
import com.aliyun.dao.YuMingDao;

@Transactional  
@Component("yumingService")
public class YuMingService {
	@Resource
	YuMingDao yumingDao;
	
	
	public int insertYuMing(Map<String,String> map)throws SQLException{
		return yumingDao.insertYuMing(map);
	}
	public int insertYuMingList(List<Map<String,String>> list)throws SQLException{
		return yumingDao.insertYuMingList(list);
	}
	public int deleteYuMing(List<Map<String,String>> list)throws SQLException{
		return yumingDao.deleteYuMing(list);
	}
	public int updateYuMingStatus(Map<String,String> map)throws SQLException{
		return yumingDao.updateYuMingStatus(map);
	}
	public List<Map<String, Object>> getYuMingItem(QueryPara qp) throws SQLException{
		return yumingDao.getYuMingItem(qp);  
	}
	public List<Map<String, Object>> getYuMingList(Map<String,String> map) throws SQLException{
		return yumingDao.getYuMingList(map);  
	}
	public List<Map<String, Object>> getYuMingTimeList(Map<String,String> map) throws SQLException{
		return yumingDao.getYuMingTimeList(map);  
	}
	public List<Map<String, Object>> getYuMingTime() throws SQLException{
		return yumingDao.getYuMingTime();  
	}
	public Map<String, Object> getYuMingItemOne() throws SQLException{
		return yumingDao.getYuMingItemOne();  
	}
}
